<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <link rel="icon" href="/favicon.ico">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>条件渲染</title>
</head>

<body>
  <script src="./src/vue.js"></script>
  <div id="app">
    <h1 v-if="awesome">Vue is awesome!</h1>
    <h1 v-else>Oh no 😢</h1>
    <h1 v-show="ok">Hello!</h1>
  </div>
  <script>
    var vm = new Vue({
      el: '#app',
      data: {
        awesome: true,
        ok: true
      }
    })
  </script>

</body>

</html>